package com.zhentao.api.user;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.pay.pojo.ApUserMembership;
import com.zhentao.model.user.pojo.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("ap-user")
public interface UserClientApi {
    @PostMapping("/api/v1/app/user/update")
    public ResponseResult updateApUser(@RequestBody ApUserMembership apUserMembership);

    @PostMapping("/api/v1/app/user/selectOne")
    public ApUser selectOne(@RequestParam("id") Integer id);
    @PostMapping("/api/v1/app/user/updateToUser")
    public ResponseResult updateUser(@RequestBody ApUser apUser);

}
